package com.goudan.ojcloudserviceclient.fallback;

import com.goudan.ojcloudserviceclient.FeignClient.UserFeignClient;
import com.goudan.ojmodel.entity.User;
import com.goudan.ojmodel.vo.UserVO;

import javax.servlet.http.HttpServletRequest;
import java.util.Collection;
import java.util.Collections;
import java.util.List;

public class UserFallBack implements UserFeignClient {
    @Override
    public User getById(Long userId) {
        return new User();
    }

    @Override
    public List<User> listByIds(Collection<Long> idList) {
        return Collections.emptyList();
    }

    @Override
    public User getLoginUser(HttpServletRequest request) {
        return UserFeignClient.super.getLoginUser(request);
    }

    @Override
    public UserVO getUserVO(User user) {
        return UserFeignClient.super.getUserVO(user);
    }

    @Override
    public boolean isAdmin(User user) {
        return UserFeignClient.super.isAdmin(user);
    }
}
